'use strict';
// Copyright 2014 Blueant Inc. All Rights Reserved.

/**
 * @fileoverview 邮件相关
 * @author sundbcn@gmail.com (sun debing)
 */

/**
 * 添加玩家邮件
 * @param {[type]} mail_model [description]
 */
/*jshint maxparams: 10 */
exports.sendMail = function (mail_model, title, content, reward_list, module_type, operation_type, reserve_int_val, reserve_str_val) {
    if (!mail_model || !title || !content) {
        return false;
    }

    mail_model.addMail(title, content, reward_list, module_type, operation_type, reserve_int_val, reserve_str_val);
    return mail_model;
};
